'use strict'
var duixi = {
    name : '塔克',
    heigth : 193
    // age: function () {
    //     var y = new Date().getFullYear();
    //     return y - this.birth;
        
    }
//}

console.log(duixi);

function con(){
    var arr = [];
    for(let i =1;i<=3;i++){
        arr.push((function(s){
            return function(){
                return s*s;
            }
        })(i));
    }
    return arr;
}

var results = con();
var f1 = results[0];
var f2 = results[1];
//var f3 = results[2];

console.log(f1());
console.log(f2());
//console.log(f3());


function bert(jus){
    var gg = jus || 0;
    return{
        ger:function(){
            gg += 2
            return gg;
        }
    }
}

var c = bert(10);

console.log(c.ger());
console.log(c.ger());
console.log(c.ger());